//
//  SMSRequest.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/2/26.
//

#import "Item2UpdateUserInfoRequest.h"

@implementation Item2UpdateUserInfoRequest

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (NSString *)requestUrl {
    NSString *uri = [@"/sulitloanapi/slu/cotton" stringByAppendingString:self.commonQuery];
    NSCharacterSet *allowedCharacters = [NSCharacterSet URLQueryAllowedCharacterSet];
    return [uri stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters];
}

- (id)requestArgument {
//    return @{
//        @"scenery": self.scenery ?: @"", // 产品ID
//        @"twined": @"twined",
//        @"vines": self.vines ?: @"", // 教育
//        @"teacher": self.teacher ?: @"", // 家庭住址
//        @"stillness": self.stillness ?: @"", // 家庭城市
//        @"conventual": self.conventual ?: @"", // 家庭电话
//        @"nobility": self.nobility ?: @"", // 居住
//        @"academy": self.academy ?: @"", // 婚姻
//        @"lakes": self.lakes ?: @"", // 用途
//        @"midst": self.midst ?: @"", // 性别
//    };
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    [dict setValue:self.scenery forKey:@"scenery"];
    [dict addEntriesFromDictionary:self.info];
    return dict;
}

@end
